﻿@model Seven.DataModel.ViewModels.WorkflowAbout.FormDesignModel
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>设计表单 - @(Model.Name)</title>
    <link href="~/Content/Site.css" rel="stylesheet" />
    <script src="~/Scripts/jquery/jquery-1.11.0.js"></script>
    <script src="~/Scripts/jquery-extensions/jquery.jdirk.js"></script>
    <script src="~/Scripts/jquery-easyui/jquery-easyui-1.3.6/jquery.easyui.min.js"></script>
    <script src="~/Scripts/jquery-easyui/jquery-easyui-1.3.6/locale/easyui-lang-zh_CN.js"></script>
    <link href="~/Scripts/jquery-easyui/jquery-easyui-theme/@(Request.Cookies[Seven.Service.SiteCore.ThemeCookieNamePrefix + User.Identity.Name] == null ? "default" : Request.Cookies[Seven.Service.SiteCore.ThemeCookieNamePrefix + User.Identity.Name].Value)/easyui.css" rel="stylesheet" />
    <link href="~/Scripts/jquery-easyui/jquery-easyui-theme/icon.css" rel="stylesheet" />
    <link href="~/Scripts/jquery-easyui-extensions/jeasyui.extensions.css" rel="stylesheet" />
    @*对EasyUI的扩展，基本扩展库*@
    <script type="text/javascript" src="~/Scripts/jquery-easyui-extensions/jeasyui.extensions.js"></script>
    <script src="~/Scripts/jquery-easyui-extensions-self/jeasyui.helper.js"></script>
    <script src="~/Scripts/jquery-easyui-extensions-self/jeasyui.ajaxSetup.logoutExit.js"></script>
    @*编辑器*@
    <link href="~/Content/workflow/formDesign.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-plugins/ckeditor/ckeditor.js"></script>
    <script src="~/Scripts/views/WorkflowForm/FormDesignForm.js"></script>
    <script>
        $(function () {
            var _editor = CKEDITOR.replace('Content', {
                customConfig: '/Scripts/jquery-plugins/ckeditor/myConfig.js',
                height: $.util.windowSize("height") - 140
            });
            window.views.WorkflowForm.FormDesignForm.initPage(_editor);
        });
    </script>
</head>
<body>
    <table class="tableNoBorder" style="width:100%;height:100%">
        <tr>
            <td>
                <form method="post" enctype="multipart/form-data">
                    @Html.HiddenFor(m => m.ID)
                    @Html.TextAreaFor(m => m.Content)
                </form>
            </td>
            <td style="width:110px; vertical-align:top;">
                <table class="tableNoBorder">
                    <tr>
                        <th>
                            表单控件
                        </th>
                    </tr>
                    <tr>
                        <td>
                            <button id="conTable" class="btnTool" style="border-bottom-width:0px;">
                                <img src="/Content/workflow/images/table.png" />
                                绘制表格
                            </button><br />
                            <button id="conTextField" class="btnTool" style="border-bottom-width:0px;">
                                <img src="/Content/workflow/images/textfield.gif" />
                                单行输入框
                            </button><br />
                            <button id="conTextArea" class="btnTool" style="border-bottom-width:0px;">
                                <img src="/Content/workflow/images/textarea.gif" />
                                多行输入框
                            </button><br />
                            <button id="conSelect" class="btnTool" style="border-bottom-width:0px;">
                                <img src="/Content/workflow/images/listmenu.gif" />
                                下拉菜单
                            </button><br />
                            <button id="conCheckbox" class="btnTool" style="border-bottom-width:0px;">
                                <img src="/Content/workflow/images/checkbox.gif" />
                                复选框
                            </button><br />
                            <button id="conMacro" class="btnTool" style="border-bottom-width:0px;">
                                <img src="/Content/workflow/images/auto.gif" />
                                宏控件
                            </button><br />
                            <button id="conDateTimebox" class="btnTool" style="border-bottom-width:0px;">
                                <img src="/Content/workflow/images/calendar.gif" />
                                日期控件
                            </button><br />
                            <button id="conCalculate" class="btnTool">
                                <img src="/Content/workflow/images/calc.gif" />
                                计算控件
                            </button><br />
                        </td>
                    </tr>
                </table>
                <table class="tableNoBorder">
                    <tr>
                        <th>
                            保存与退出
                        </th>
                    </tr>
                    <tr>
                        <td>
                            <button id="btnSave" class="btnControl" style="border-bottom-width:0px;">
                                保存表单
                            </button><br />
                            <button id="btnPreview" class="btnControl" style="border-bottom-width:0px;">
                                预览表单
                            </button><br />
                            <button id="btnGetData" class="btnControl" style="border-bottom-width:0px;">
                                获取数据
                            </button><br />
                            <button id="btnClose" class="btnControl">
                                关闭设计器
                            </button>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</body>
</html>
